package com.jiawa.langchain4j.service;

import com.jiawa.langchain4j.mapper.ReservationMapper;
import com.jiawa.langchain4j.pojo.Reservation;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReservationService {
    @Autowired
    private ReservationMapper reservationMapper;

    public void insert(Reservation reservation) {
        reservationMapper.insert(reservation);
    }

    public Reservation selectById(String phone) {
        return reservationMapper.findByPhone(phone);
    }
}
